package face.com.androidfacesdk;

/**
 * Created by mazhi on 2017/12/28.
 */

public class FaceMobile {
    /**
     * 获取android机器码（32位）
     * @return
     */
    public native String getSerialNo();  // required

    /**
     *
     * @param numThreads
     */
    public  native void setNumThreads(int numThreads);
    public native int loadModel(String modelDir);  // required
    //Version2.0 下一版本开放,暂时不要使用
    public native float compare2Image(String imgFile1, String imgFile2);
    //face detect 结果/4=人脸个数
    public native int[] detectFace(byte[] rgb24, int width, int height, int widthStep);
    //extract face feature
    public native float[] extractFeature(byte[] rgb24, int width, int height, int widthStep, int[] faceRect);
    //calculate two face feature similarity
    public native float compare2Feature(float[] fea1, float[] fea2);

    //释放资源
    public native void free();
}
